﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Reviewer.Entities.Services
{
    public interface IMetadataService<T> : IDisposable where T : class,new()
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
        ICollection<T> GetAll();

        T Save(T entity);

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
        T Get(int itemId);
    }
}
